<div>
    <div>
        <div class="panel panel-default  m-n">
            <div class="panel-heading font-bold">{{editData.name}}</div>
            <form role="form" class="ng-valid form-horizontal form-validation">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">占比</label>
                        <div class="col-sm-7 input-group m-b">
                            <input type="number" class="form-control" ng-model="editData.ratio" ng-trim="true" ng-pattern="/^(?:[1-9]\d*|0)(?:\.\d{1,2})?$/" required>
                            <span class="input-group-addon">%</span>
                        </div>
                    </div>
                </div>
                <div class="panel-footer text-right">
                    <div>
                        <button type="submit" ng-click="edit()" class="btn m-b-xs w-xs btn-info">保存</button>
                        <button class="btn m-b-xs w-xs btn-default" ng-click="cancel()">取消</button>
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>